﻿using System.IO;

namespace OpenLS.Spreadsheet.Formats.Biff.Records
{
    internal class CFExAveragesTemplateParams : CFExTemplateParams
    {
        public CFExAveragesTemplateParams()
        {
            
        }

        private AverageThreshold iParam;

        public override void Read(BinaryReader reader)
        {
            iParam = (AverageThreshold)reader.ReadUInt16();
            var reserved = reader.ReadBytes(14);
        }

        public override void Write(BinaryWriter writer)
        {
            writer.Write((ushort) iParam);
            writer.Write(new byte[14]);
        }

        public override byte Type
        {
            get { return 0x19; }
        }

        public override byte Length
        {
            get { return 16; }
        }
    }
}